package com.xu.cloud.auth.pojo.http;

import com.xu.cloud.common.desensitization.Desensitization;
import com.xu.cloud.common.desensitization.SensitizationEnum;
import com.xu.cloud.common.pojo.http.resp.BaseResponse;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 登录响应实体类
 *
 * @author xuguan
 * @since 2025/2/23
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
public class LoginResp extends BaseResponse {
    private String accessToken;
    private Long userId;
    @Desensitization(SensitizationEnum.CHINESE_NAME)
    private String userName;
    @Desensitization(SensitizationEnum.MOBILE_NO)
    private String mobileNo;
    @Desensitization(SensitizationEnum.EMAIL)
    private String email;
    private String sex;
    private List<String> roles;
    private List<String> permissions;
}
